package com.tecklab.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("operation_log")
public class OperationLogEntity {

    @TableId(type= IdType.AUTO)
    private Integer id;

    private String operation;

    private String operationType;

    private String operatorName;

    private String params;

    private String operatorIp;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;


}
